import request from "@/utils/httpRequest";

export default {
	save: function (inputForm) {
		return request({
			url: "/cost/projectCost/save",
			method: "post",
			data: inputForm,
		});
	},

	delete: function (ids) {
		return request({
			url: "/cost/projectCost/delete",
			method: "delete",
			params: { ids: ids },
		});
	},

	queryById: function (id) {
		return request({
			url: "/cost/projectCost/queryById",
			method: "get",
			params: { id: id },
		});
	},

	list: function (params) {
		return request({
			url: "/cost/projectCost/list",
			method: "get",
			params: params,
		});
	},

	exportTemplate: function () {
		return request({
			url: "/cost/projectCost/import/template",
			method: "get",
			responseType: "blob",
		});
	},

	exportExcel: function (params) {
		return request({
			url: "/cost/projectCost/export",
			method: "get",
			params: params,
			responseType: "blob",
		});
	},

	importExcel: function (data) {
		return request({
			url: "/cost/projectCost/import",
			method: "post",
			data: data,
		});
	},

	downTemplate: function () {
		return request({
			url: "/cost/projectCost/download/template",
			method: "get",
			responseType: "blob",
		});
	},
	uploadTemplate: function (data) {
		return request({
			url: "/cost/projectCost/upload",
			method: "post",
			data: data,
		});
	},
	nextCost:function (inputForm) {
		return request({
			url: "/cost/projectCost/nextCost",
			method: "post",
			data: inputForm,
		});
	},

	exportFinally: function (params) {
		return request({
			url: "/cost/projectCost/export/finally",
			method: "get",
			params: params,
			responseType: "blob",
		});
	},
	
	exportFund: function (params) {
		return request({
			url: "/fund/operation/export",
			method: "get",
			params: params,
			responseType: "blob",
		});
	},
	exportDetail: function (params) {
		return request({
			url: "/cost/projectCost/export/detail",
			method: "get",
			params: params,
			responseType: "blob",
		});
	},
	getHistoryList: function (params) {
		return request({
			url: "/cost/projectCost/historyList",
			method: "get",
			params: params,
		});
	},
	startApproval:function (inputForm) {
		return request({
			url: "/cost/projectCost/startApproval",
			method: "post",
			data: inputForm,
		});
	},

	uploadDingDingFile:function (inputForm) {
		return request({
			url: "/cost/projectCost/uploadDingDingFile",
			method: "post",
			data: inputForm,
		});
	},
	dingDetail:function (params) {
		return request({
			url: "/cost/projectCost/dingDetail",
			method: "get",
			params: params,
		});
	},

	
};
